﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TestClientsCommon;
using smp.RabbitMq;

namespace Responder1
{
    class Program
    {
        static void Main(string[] args)
        {
            var factory = new RabbitMqFactory();
            var handlers = new ResponderHandlers()
                .Add<RequestMessage1, Response1>(new TestClientsCommon.Responder1());
            using (var subscriber = factory.CreateResponderSubscriber(handlers))
            {
                subscriber.HostResponderServer();
            }
        }
    }
}
